import request from '@/utils/request'

/**
 * 新增，修改数据
 * @param {*} data
 * @returns
 */
export function saveData(data) {
  return request({
    url: '/api/v1/seriesStandardColor',
    method: data.id ? 'PUT' : 'POST',
    data
  })
}

/**
 * 批量删除
 * @param {Array} data
 * @returns
 */
export function deleteBatch(data) {
  return request({
    url: '/api/v1/seriesStandardColor/deleteBatch',
    method: 'DELETE',
    data
  })
}
